package com.hero.basicsystem.dao.ibatis;

import com.hero.basicsystem.dao.IEnterprisesystemDAO;
import com.hero.basicsystem.entity.Enterprisesystem;
import com.hero.basicsystem.entity.EnterprisesystemExample;
import com.hero.basicsystem.entity.EnterprisesystemKey;
import com.hero.web.dao.IbatisBaseDao;
import java.util.List;

public class EnterprisesystemDAOImpl extends IbatisBaseDao<Enterprisesystem, EnterprisesystemExample> implements IEnterprisesystemDAO {

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisesystem11
     *
     * @ibatorgenerated Sun Jun 12 08:41:54 GMT 2011
     */
    public EnterprisesystemDAOImpl() {
        super();
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisesystem11
     *
     * @ibatorgenerated Sun Jun 12 08:41:54 GMT 2011
     */
    public int countByExample(EnterprisesystemExample example) {
        Integer count = (Integer)  getSqlMapClientTemplate().queryForObject("enterprisesystem.ibatorgenerated_countByExample", example);
        return count;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisesystem11
     *
     * @ibatorgenerated Sun Jun 12 08:41:54 GMT 2011
     */
    public int deleteByExample(EnterprisesystemExample example) {
        int rows = getSqlMapClientTemplate().delete("enterprisesystem.ibatorgenerated_deleteByExample", example);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisesystem11
     *
     * @ibatorgenerated Sun Jun 12 08:41:54 GMT 2011
     */
    public int deleteByPrimaryKey(EnterprisesystemKey key) {
        int rows = getSqlMapClientTemplate().delete("enterprisesystem.ibatorgenerated_deleteByPrimaryKey", key);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisesystem11
     *
     * @ibatorgenerated Sun Jun 12 08:41:54 GMT 2011
     */
    public void insert(Enterprisesystem record) {
        getSqlMapClientTemplate().insert("enterprisesystem.ibatorgenerated_insert", record);
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisesystem11
     *
     * @ibatorgenerated Sun Jun 12 08:41:54 GMT 2011
     */
    public void insertSelective(Enterprisesystem record) {
        getSqlMapClientTemplate().insert("enterprisesystem.ibatorgenerated_insertSelective", record);
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisesystem11
     *
     * @ibatorgenerated Sun Jun 12 08:41:54 GMT 2011
     */
    @SuppressWarnings("unchecked")
    public List<Enterprisesystem> selectByExample(EnterprisesystemExample example) {
        List<Enterprisesystem> list = getSqlMapClientTemplate().queryForList("enterprisesystem.ibatorgenerated_selectByExample", example);
        return list;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisesystem11
     *
     * @ibatorgenerated Sun Jun 12 08:41:54 GMT 2011
     */
    public Enterprisesystem selectByPrimaryKey(EnterprisesystemKey key) {
        Enterprisesystem record = (Enterprisesystem) getSqlMapClientTemplate().queryForObject("enterprisesystem.ibatorgenerated_selectByPrimaryKey", key);
        return record;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisesystem11
     *
     * @ibatorgenerated Sun Jun 12 08:41:54 GMT 2011
     */
    public int updateByExampleSelective(Enterprisesystem record, EnterprisesystemExample example) {
        UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
        int rows = getSqlMapClientTemplate().update("enterprisesystem.ibatorgenerated_updateByExampleSelective", parms);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisesystem11
     *
     * @ibatorgenerated Sun Jun 12 08:41:54 GMT 2011
     */
    public int updateByExample(Enterprisesystem record, EnterprisesystemExample example) {
        UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
        int rows = getSqlMapClientTemplate().update("enterprisesystem.ibatorgenerated_updateByExample", parms);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisesystem11
     *
     * @ibatorgenerated Sun Jun 12 08:41:54 GMT 2011
     */
    public int updateByPrimaryKeySelective(Enterprisesystem record) {
        int rows = getSqlMapClientTemplate().update("enterprisesystem.ibatorgenerated_updateByPrimaryKeySelective", record);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisesystem11
     *
     * @ibatorgenerated Sun Jun 12 08:41:54 GMT 2011
     */
    public int updateByPrimaryKey(Enterprisesystem record) {
        int rows = getSqlMapClientTemplate().update("enterprisesystem.ibatorgenerated_updateByPrimaryKey", record);
        return rows;
    }

    /**
     * This class was generated by Apache iBATIS ibator.
     * This class corresponds to the database table enterprisesystem11
     *
     * @ibatorgenerated Sun Jun 12 08:41:54 GMT 2011
     */
    private static class UpdateByExampleParms extends EnterprisesystemExample {
        private Object record;

        public UpdateByExampleParms(Object record, EnterprisesystemExample example) {
            super(example);
            this.record = record;
        }

        public Object getRecord() {
            return record;
        }
    }
}